#include <Arduino.h>

// put function declarations here:
int base = 2;
int num = 6;

void setup()
{
  // put your setup code here, to run once:
  for (int i = 0; i < num; i++)
  {
    pinMode(base + i, OUTPUT);
  }
}

void loop()
{
  // put your main code here, to run repeatedly:
  for (int i = 0; i < num; i++)
  {
    digitalWrite(base + i, HIGH);
    delay(100);
  }
  for (int i = 0; i < num; i++)
  {
    digitalWrite(base + i, LOW);
    delay(100);
  }
  for (int i = num; i > 0; i--)
  {
    digitalWrite(base + i - 1, HIGH);
    delay(100);
  }
  for (int i = num; i > 0; i--)
  {
    digitalWrite(base + i - 1, LOW);
    delay(100);
  }
}

// put function definitions here: